package hhb.game.zhualaoer.core.dao;

import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

@Getter
@Setter
public class GameInfo {

    //回合数
    private int round;

    //当前玩家
    private String userAccount;

    //公共牌-明牌
    private List<Card> openCards;

    //公共牌-暗牌
    private List<Card> darkCards;

    //手牌
    private List<Card> handCards;

    //胜负 一共有5轮；胜利为1，平局为0，失败为-1
    private HashMap<Integer, Integer> result;

    public GameInfo(int round, User user, List<Card> openCards, List<Card> darkCards, List<Card> handCards) {
        this.round = round;
        this.userAccount = user.getUserAccount();
        this.openCards = openCards;
        this.darkCards = darkCards;
        this.handCards = handCards;
    }

    public GameInfo() {
        //默认构造方法
    }

    public GameInfo(int round, User user,ArrayList<Card> cards) {
        this.round = round;
        this.userAccount = user.getUserAccount();
        this.handCards = cards;
    }
}
